package com.xyy.dto;

import lombok.Data;

import javax.validation.constraints.Min;

/**
 * 分页查询DTO
 */
@Data
public class PageQueryDTO {

    /**
     * 当前页码
     */
    @Min(value = 1, message = "页码必须大于0")
    private Integer current = 1;

    /**
     * 每页大小
     */
    @Min(value = 1, message = "每页大小必须大于0")
    private Integer size = 10;
} 